notebook: don't use a null page
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 23:40:57 +0000 (18:40 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 23:41:22 +0000 (18:41 -0500)
gtk/gtknotebook.c

index b610b6cc824c1288c8aaee133e9595c6f6d895ba..21da499dc7998933eec46b2afd3002564ccf7240 100644 (file)
@@ -2007,6 +2007,8 @@ notebook_tab_prepare_style_context (GtkNotebook *notebook,
         state |= GTK_STATE_FLAG_ACTIVE;
       if (page == notebook->priv->prelight_tab)
         state |= GTK_STATE_FLAG_PRELIGHT;
+      if (page->reorderable)
+        gtk_style_context_add_class (context, "reorderable-page");
     }
 
   gtk_style_context_set_state (context, state);
@@ -2016,9 +2018,6 @@ notebook_tab_prepare_style_context (GtkNotebook *notebook,
 
   gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, flags);
 
-  if (page->reorderable)
-    gtk_style_context_add_class (context, "reorderable-page");
-
   switch (tab_pos)
     {
     case GTK_POS_TOP: